package cn.gd.service.IncomeProofApplicationsService;


import cn.gd.mapper.IncomeProofApplicationsMapper.IncomeProofApplicationsMapper;
import cn.gd.pojo.Incomeproofapplications;
import cn.gd.pojo.Users;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IncomeProofApplicationsServiceImpl implements IncomeProofApplicationsService {

    private final IncomeProofApplicationsMapper incomeProofApplicationsMapper;

    public IncomeProofApplicationsServiceImpl(IncomeProofApplicationsMapper incomeProofApplicationsMapper) {
        this.incomeProofApplicationsMapper = incomeProofApplicationsMapper;
    }

    @Override
    public List<Incomeproofapplications> findAll() {
        return incomeProofApplicationsMapper.findAll();
    }

    @Override
    public Incomeproofapplications findById(Integer ProofID) {
        return incomeProofApplicationsMapper.findById(ProofID);
    }

    @Override
    public Incomeproofapplications save(Incomeproofapplications incomeProofApplications) {
        incomeProofApplicationsMapper.insert(incomeProofApplications);
        return incomeProofApplications;
    }

    @Override
    public Incomeproofapplications update(Incomeproofapplications incomeProofApplications) {
        incomeProofApplicationsMapper.update(incomeProofApplications);
        return incomeProofApplications;
    }

    @Override
    public void deleteById(Integer ProofID) {
        incomeProofApplicationsMapper.deleteById(ProofID);
    }
}
